<?php

namespace app\selladmin\model;

use think\Model;
use think\Db;

/*
 * 店铺
 */

class StaffStore extends Model {

    /*
      * 店铺
      */
    public function store()
    {
        return $this->belongsTo('Store', 'store_id', 'id')
            ->field('id, store_name');
    }

    /*
     * 老板信息
     */
    public function staff()
    {
        return $this->belongsTo('Staff', 'staff_id', 'id')
            ->field('id, telephone');
    }

}
